﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.Security;
using System.Web.UI.WebControls;
using Common;

public partial class membership_logout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();

        if (!IsPostBack)
            __URLREFFERRER.Value = RequestBase.GetServerString("HTTP_REFERER");

        if (__URLREFFERRER.Value == "")
        {
            Response.Redirect("index.aspx");
        }
        else
        {
            Response.Redirect(__URLREFFERRER.Value.Trim());
        }
    }
}